/*
 * @Author: hrg
 * @Date: 2023-12-14 10:25:27
 * @LastEditTime: 2023-12-16 17:24:17
 * @FilePath: \go2222222222\code1\tool\tool.go
 * @Description:
 */
package tool

import (
	"fmt"
)

func Dayin() {
	var num1 = 20
	test(&num1)
	fmt.Println("num1:", num1)
}

func test(num *int) {
	*num = 30
	fmt.Println("num值:", *num)
}
